home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
program
/
gcc
/
libmat.lha
/
src
/
mconst1.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1980-01-01
|
362b
|
23 lines
// MATRIX LIB
// TOMMY JOHANSSON 1995
#include "matrix.h"
Matrix::Matrix(float **mat,int x,int y)
{
#ifdef DEBUG
printf("Initierar matris från en array.Storlek: %dx%d\n",x,y);
#endif
int i,j;
koff=alloc(x+1,y+1);
if(koff==NULL)
{
printf("Minnet slut\n");
exit(0);
}
m=x;
n=y;
for(i=1;i<=x;i++)
for(j=1;j<=y;j++)
koff[i][j]=mat[i][j];
}